
/*初始化各个模块入口文件 */

const expressLoader = require('./express')
const mysqlLoader = require('./mysql')
const routerLoader = require('./router')
const sendEmailJobs = require('../jobs/sendEmail')
module.exports = async (app) => {
  //初始化express模块
  await expressLoader();
  console.log('Express Intialized');
  //初始化路由模块
  await routerLoader(app);
  console.log('Router Intialized');
  //初始化mysql模块
  await mysqlLoader();
  console.log('Mysql Connection');
  //发送邮件定时任务
  await sendEmailJobs();
  console.log('sendEmailJobs Started');
}
